package org.javaboy.vhr.controller.config;

import org.javaboy.vhr.model.Menu;
import org.javaboy.vhr.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author Willie Chen
 * @Description
 * @Date 2019/10/13
 * @Param $param
 **/
@RestController
@RequestMapping("/system/config")
public class SystemConfigController {
  @Autowired
  private MenuService menuService;

    @GetMapping("/menu")
    public List<Menu> getMenusByHrId(Integer i){

        return   menuService.getMenusByHrId();
    }

}
